home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Python 1.3.3 / stdwin / H / stdwconf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-21  |  1.0 KB  |  38 lines  |  [TEXT/CWIE]

  1. /* "stdwconf.h" -- define/derive feature test macros.
  2.  
  3.    This file is supposed to be portable between all OSes,
  4.    and may be included by applications (though it is not automatically
  5.    included by stdwin.h).  It just so happens that on UNIX, feature
  6.    test macros are now computed by the configure script, so all that's
  7.    left in this file is Mac specific....
  8.  
  9.    It is also reentrant.
  10. */
  11.  
  12. /* MPW defines "applec" and "macintosh"; THINK C defines "THINK_C";
  13.    metrowerks defines "__MWERKS__".  We want "macintosh" defined for
  14.    any Mac implementation, and "MPW" for MPW.   The other compilers
  15.    are recognized by their own defines ("THINK_C" or "__MWERKS__").
  16. */
  17.  
  18. /* If "applec" is defined, it must be MPW */
  19. #ifdef applec
  20. #ifndef MPW
  21. #define MPW
  22. #endif
  23. #endif
  24.  
  25. /* Under THINK C, define "macintosh" if not already defined */
  26. #ifdef THINK_C
  27. #ifndef macintosh
  28. #define macintosh
  29. #endif
  30. #endif
  31.  
  32. /* Under MetroWerks, define "macintosh" if not already defined */
  33. #ifdef __MWERKS__
  34. #ifndef macintosh
  35. #define macintosh
  36. #endif
  37. #endif
  38.